#include <iostream>
#include <boost/ptr_container/ptr_vector.hpp>
using namespace boost;
using namespace std;

int main()
{
    cout << "--- Start ---" << endl;
    typedef ptr_vector<string> ptr_vec;

    ptr_vec vec(10); 
    vec.push_back(new string("string"));
    vec.push_back(new string("hello"));
    cout << vec[1] << endl;
    vec[0] = "lichunjun";
    cout << vec[0] << endl;
    //vec.push_back(string("edan"));
    vec[1] = "Li";
    cout << "--- End ---" << endl;
    return 0;
}
